<?php

class Horario extends MY_Model {
 
    function Horario()
    {
        // Call the Model constructor
        parent::MY_Model();

	$this->nombreTabla = "horario";
	$this->idT1= "idHorario";
	$this->nombreCampo="diaDesde";


		$this->campos[] = array("realname" => "idResto",
					"clase" => "partof",
					"label" => "Restaurant",
					"modelo" => "Restaurant",
					"rules" => "required|integer");
		
		$this->campos[] = array("realname" => "diaDesde",
					"clase" => "date",
					"label" => "Dia Desde",
					"rules" => "required|min_length[3]|max_length[30]");

		$this->campos[] = array("realname" => "diaHasta",
					"clase" => "date",
					"label" => "Dia Hasta",
					"rules" => "required|min_length[3]|max_length[30]");
		
		$this->campos[] = array("realname" => "diaSemana",
					"clase" => "text",
					"label" => "Dia de la semana",
					"rules" => "min_length[3]|max_length[10]|alpha");
		
		$this->campos[] = array("realname" => "aperturaMediodia",
					"clase" => "time",
					"label" => "Apertura al mediodia",
					"rules" => "min_length[3]|max_length[5]");

		$this->campos[] = array("realname" => "cierreMediodia",
					"clase" => "time",
					"label" => "Cierre al mediodia",
					"rules" => "min_length[3]|max_length[5]");

		$this->campos[] = array("realname" => "aperturaNoche",
					"clase" => "time",
					"label" => "Apertura a la noche",
					"rules" => "min_length[3]|max_length[5]");

		$this->campos[] = array("realname" => "cierreNoche",
					"clase" => "time",
					"label" => "Cierre a la noche",
					"rules" => "min_length[3]|max_length[5]");



    }
     
}


?>
